package com.ebocy.hammer.core.db;

public interface DAOConstants {
	/**
	 * base database type 2012-3-23@author yangshaobo
	 */
	public enum DBType {
		MONGODB((short) 0);
		private short value;

		private DBType(short value) {
			this.value = value;
		}

		public short getValue() {
			return value;
		}

		public static DBType getDAOType(short value) {
			for (DBType type : DBType.values()) {
				if (type.value == value) {
					return type;
				}
			}
			return MONGODB;
		}
	}
}
